package com.ysd.lis.controller.sta;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.sta.StaDescOption;
import com.ysd.lis.service.sta.StaDescOptionService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 细菌描述性结果选项 前端控制器
 * </p>
 *
 * @author whx
 * @since 2025-01-24
 */
@RestController
@RequestMapping("/api/sta/sta-desc-option")
public class StaDescOptionController extends BaseController {
    @Autowired
    StaDescOptionService bacDescOptionService;

    @ApiOperation("查询")
    @GetMapping("/findBacDescOptionList")
    public Result findBacDescOptionList(StaDescOption bacDescOption) {
        return bacDescOptionService.findBacDescOptionList(bacDescOption);
    }

    @ApiOperation("增加")
    @PostMapping("/addBacDescOption")
    public Result addBacDescOption(@RequestBody StaDescOption bacDescOption) {
        return bacDescOptionService.addBacDescOption(bacDescOption);
    }

    @ApiOperation("删除")
    @PostMapping("/deleteBacDescOption")
    public Result deleteBacDescOption(@RequestBody StaDescOption bacDescOption) {
        return bacDescOptionService.deleteBacDescOption(bacDescOption);
    }

    @ApiOperation("修改")
    @PostMapping("/updateBacDescOption")
    public Result updateBacDescOption(@RequestBody StaDescOption bacDescOption) {
        return bacDescOptionService.updateBacDescOption(bacDescOption);
    }
}
